Automatic animal detection and deterrent system

ABSTRACT

This disclosure provides a method of detecting and deterring a target animal from a target area. A target area is positioned within the field of vision of a video camera connected to a computer processing system. An animal identification computer program using convolution neural networks and deep learning computer programs and camera images rapidly detects a target animal. The animal identification computer program is trained to identify target animals accurately using a learning algorithm and related machine learning technology. The time to deploy a deterrent against a target animal from the instant of detection is 2 seconds or less so that little or no time is available to the target animal to damage the target area.

FIELD OF THE INVENTION

This invention relates to methods and systems for deterring animals from entering specific areas and, more particularly, to methods and systems that use video object detection using machine learning on a neural network and type identification training to quickly, accurately, and automatically detect and deter an intruding animal in a given location.

BACKGROUND OF THE INVENTION

It has been desirable to exclude animals from a particular area. Pets, such as dogs and cats, etc. have been known to cause harm to furnishings, plants and other objects by scratching, lying upon, and in general having access to such objects. Predators such as coyotes are known to attack and kill pets such as dogs. Marine animals such as birds and sea lions are known to perch or lie upon ocean craft in harbors and to soil and foul the surfaces of these craft. To combat such unwanted behavior, devices are known to detect the presence of these animals and deter them by producing a stimulus which startles or scares the animal. These deterring stimuli can include the spraying the animal with water, emitting sounds, or flashing lights, or combinations thereof. U.S. Pat. Nos. 4,658,386; 7,278,375; 7,462,364; 9,044,770; 9,204,622; and 9,226,493 disclose various methods and systems to detect and deter animals from entering a specified area. All of these methods and systems use infra-red motion detection systems to detect the presence of the animals. Motion detection has not been reliable and can lead to false positives and negatives. Motion detectors cannot distinguish between humans and non-human animals.

China Patent Application Publication No. CN202476328 discloses an airport laser bird repelling system based on image recognition (classification). A motion detection module firstly uses the images of a front frame and a rear frame of a video stream as differential, so as to find an object in motion. A bird identification module is the used for identifying the image morphology of all the moving objects. When the characteristic of the image changes regularly, namely the movement of the flying bird wings, the object is considered as “birds”. A movement tracking module tracks the “birds” by using a tracking algorithm. A position parameter generating module is used for converting the cartesian coordinate system position information on the image into polar coordinate system information, namely the distance from the center of the image and the rotation angle around the initial axis. Pulse width modulated waves are generated for rotating a steering engine by using a discrete proportional integral derivative algorithm according to the information. The pulse width modulated wave signals are transmitted to the steering engine so that the steering engine can align the flying birds to the center of the camera. An instruction is then sent to a laser generator to emit lasers to frighten the birds away. Although this use of video image recognition may improve upon detection of only motion, object recognition via morphology is relatively slow, complex, inaccurate, and imprecise.

SUMMARY OF THE INVENTION

This invention provides a method of detecting and deterring a target animal from a target area. The target area is placed within the field of vision of a camera which is connected to a computer processing system. An animal identification computer program is run using convolution neural networks and deep learning computer programs with camera images from the camera to detect a target animal in the target area. It is verified whether a target animal is in the field of view of the camera. If the target animal is in the field of view of the camera the target animal is recorded with the camera. One or more deterrents are aimed at the target animal and a target location is set. The deterrent is deployed to cause the target animal to leave the target area.

The recording is stopped after the deterrent is deployed, and the recording is saved to a file in the computer. If the target animal has not left the target area after deploying the deterrent the process is repeated. Verification whether a target animal is in the field of vision of the camera is performed continuously until a target animal is in the field of view of the camera. The animal identification computer program is, preferably, trained to identify target animals using a learning algorithm which involves training the learning algorithm with training data sets. The training of the learning algorithm with training data sets is validated with validation data sets. The training data sets and the validation data sets are created by gathering target animal image data in a target area, building image data sets for target animals and for target areas from the image data, and annotating or labeling images in the data sets so that the data sets may be entered into the learning algorithm.

An advantage of the method of the present invention is detecting target animals of specific species from a target area using convolution neural networks and deep learning technology to identify animal targets rapidly.

Another advantage is video camera identification of a target animal regardless of the background of the video.

Another advantage is the use of machine learning technology to provide highly accurate identification of target animals with few or no false positives.

Another advantage is the ability to deploy a deterrent against a target animal within 0.25 to 2 seconds from the instant of detection so that little or no time is available to the target animal to damage the target area.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a perspective view of the exterior of an automatic animal detection and deterrent system of the present invention.

FIG. 2 is a diagram of the electro-mechanical components of the automatic animal detection and deterrent system.

FIG. 3 is a flow chart of the method of training the automatic animal detection and deterrent system to detect objects using object detection through machine learning on a neural network.

FIG. 4 is a flow chart of the steps of the method of the present invention for automatic detection and deterring of animals.

DESCRIPTION OF THE INVENTION

While the following description details the preferred embodiments of the present invention, it is to be understood that the invention is not limited in its application to the details of arrangement of the parts or steps of the methods illustrated in the accompanying figures, since the invention is capable of other embodiments and of being practiced in various ways.

FIG. 1 shows a perspective view of the exterior of the automatic animal detection and deterrent system 10 of the present invention, which is contained in housing 11 having a front end 12 with a clear viewing window chamber 13. A video camera lens 14 is shown inside the clear viewing window chamber 13. A photovoltaic sensor (PV) 15 may also be contained within the clear viewing window chamber 13 to indicate day time or night time. The electrical components of the housing 11 may be connected to a solar panel 16 and to a plurality of animal deterrent devices 17, 18, and 19.

FIG. 2 is a diagram of the electrical components inside the housing 11. The lens 14 and the PV sensor 15 in the window chamber 13 are connected to the video camera 20 inside the housing 11. The camera 20 is attached to a central processing unit (CPU) 21 having a memory chip 22 which can collect data for datasets and store recordings from triggers. An external computation virtual processing unit (VPU) 23 is connected to the central processing unit 21, preferably by a USB connection. The VPU is a hardware accelerator for deep neural network inferences to improve edge detection. The CPU 21 is connected to a plurality of relays 24, 25, and 26 to transfer high voltage to the corresponding plurality of animal deterrents 17, 18, and 19. The CPU 21 receives power through a voltage regulator 27 which receives power through a terminal block 28 from a battery 29. A charge controller 30 is connected to the battery 29 and to the terminal block 28 through an on/off switch 31. The charge controller 30 may receive power from the solar panel 16 or other external sources of electrical power.

The video camera 20 monitors a specified area from which a user desires to deter unwanted animals. Data from the video camera 20 is transmitted to the central processing unit 21 which runs an animal identification program and controls all deterrent functions. The CPU 21 can identify an unwanted animal of interest in the specified area, target the unwanted animal in the specified area, and deploy a deterrent to the unwanted animal which will cause the unwanted animal to leave the specified area. The memory chip 22 contains identification and execution programs and stores recorded images of unwanted animals that are deterred. The external central processing unit 23 assists in running computations and increases the performance of the CPU 21. The relays 24, 25, and 26 transfer necessary voltage to the animal deterrents 17, 18, and 19, respectively, for example. The animal deterrents, without limitation, can be sound devices, such as horns, sirens, and ultrasonic sound; light devices, such as flashing lights, strobe lights and laser lights; water spray devices, such as sprinklers, hoses, and water cannons; and compressed air used with projectiles, such as sand.

The voltage regulator automatically adjusts voltage from the battery 29 to power the CPU 21 and the VPU 23. The terminal block 29 distributes power from the battery 29 to the various electrical components in the system. The charge controller 31 controls and balances charging levels to protect the battery 29 and other electrical components from electrically overloading or underloading.

The present invention uses convolution neural networks and deep learning technology known in the art as a means of identifying animal targets for deterring. The technology allows identification of a specific species. There are several commercially available pre-trained object detection models, but they are insufficient for detecting an animal. It is essential that the target animal can be identified in the video regardless of the background of the video so that identification can occur quickly before the target animal can do any damage. A large collection of images of targeted animals is obtained in a given environment. A large collection of images of a given environment with no targeted animals therein is also obtained. Using machine learning technology, a set of characteristics are discovered that allow identification of a target animal. The identification is practically in real time with few false positives and is specific to an animal species.

FIG. 3 is a flow chart of a method of training the automatic animal detection and deterrent system to detect target animals. The training process can begin with gathering target animal image data, preferably in an area where a camera will be deployed a (STEP 1). An image data set is built for the target animal in the specific area (STEP 2). Preferably, image data is gathered at different times of the day using different image recording devices, and in different locations where a camera may be deployed. Images in the data sets are annotated or labeled by methods known in the art so that the data sets may be entered into a standard learning algorithm (STEP 3). The image size may be changed to model input parameter size. Distortion can be made to the data set to add more data for training (STEP 4). The images may be divided into different sets for training, validation, and/or testing. The algorithm is then trained on a training data set (STEP 5). Any known suitable learning algorithm may be used as desired. The training results are evaluated on a validation data set (STEP 6). If validation results are acceptable the animal detection and deterrent system is ready to use (STEP 7). If the validation results are unacceptable the learning algorithm is retrained (STEP 8). Any new image data can be added to an existing database for any animal target.

FIG. 4 is a flow chart of the steps of the method of the present invention for automatic detection and deterring of animals. Once the automatic animal detection and deterrent system has been preprogrammed with the training sequence for one or more target animals it can be placed in a running mode. The unit 10 is placed where it can monitor a target area wherein the target area is within the field of vision of the video camera (STEP 9). The unit 10 is turned on (STEP 10) and the animal identification software program is running (STEP 11). Images received by the video camera are transmitted to the CPU which is programmed with a scanning identification algorithm that scans the real time video images for the pre-programmed target animal of interest. The scanning continues until the target animal is in the field of view and the target animal image is identified by the program (STEP 12). The video images can be recorded if desired (STEP 14) while the deterrents are prepared for activation (STEP 15) and the target location is identified (STEP 16). One or more deterrents are then activated (STEP 17) and video recording is stopped (STEP 18) and saved to memory. The program scans the video images to verify the presence or absence of the target animal (STEP 12). If so, STEPS 14-18 are repeated. If not, the animal identification program is continued (STEP 13) to monitor the presence or absence of the target animal. The time between detection and deterrence is sub seconds or only a few seconds, for example, 0.25 to 2 seconds, which is sufficient to deter the target animal so that little or no damaged is produced by the target animal.

The foregoing description has been limited to specific embodiments of this invention. It will be apparent, however, that variations and modifications may be made by those skilled in the art to the disclosed embodiments of the invention, with the attainment of some or all of its advantages and without departing from the spirit and scope of the present invention. For example, the system can be programmed and monitored with any suitable computer or related device, including, for example, cell phones. The system can be pre-programmed (trained) to identify and deter as many animal types as desired. Specific individual humans can be identified as known or unknown. A plurality of different deterrents can be deployed at the same time when a target animal is detected. Any type of camera can be used, including an IP camera. Multiple cameras can be used on one CPU. Connections to solar panels and deterrent devices may be wireless. Every trigger video as it happens, and/or daily summary of activity can be transmitted wirelessly via a cell network.

It will be understood that various changes in the details, materials, and arrangements of the parts which have been described and illustrated above in order to explain the nature of this invention may be made by those skilled in the art without departing from the principle and scope of the invention as recited in the following claims. 

The invention claimed is:
 1. A method of detecting and deterring a target animal from a target area, comprising: 1) placing the target area within the field of vision of a camera, wherein the camera is connected to a computer processing system; 2) running an animal identification computer program using convolution neural networks and deep learning computer programs with camera images from the camera to detect a target animal; 3) verifying if a target animal is in the field of view of the camera; 4) recording the target animal with the camera if the target animal is in the field of view of the camera; 5) arming one or more deterrents and setting a target location; 6) deploying the deterrent to cause the target animal to leave the target area; 7) training the animal identification computer program to identify target animals using a learning algorithm; 8) training the learning algorithm with training data sets; 9) validating the training of the learning algorithm with validation data sets; and 10) creating the training data sets and the validation data sets by gathering target animal image data in a target area, building image data sets for target animals and for target areas from the image data, and annotating or labeling images in the data sets so that the data sets may be entered into the learning algorithm.
 2. The method of claim 1, further comprising stopping the recording after step 6 and saving the recording to a file in the computer.
 3. The method of claim 1, further comprising repeating steps 3 through 6 if the target animal has not left the target area after deploying the deterrent.
 4. The method of claim 1, further comprising continuing to perform step 3 until a target animal is in the field of view of the camera.
 5. A method of detecting and deterring a target animal from a target area, comprising: 1) placing the target area within the field of vision of a camera, wherein the camera is connected to a computer processing system; 2) running an animal identification computer program using convolution neural networks and deep learning computer programs with camera images from the camera to detect a target animal, wherein the animal identification computer program is trained to identify target animals using a learning algorithm; 3) verifying if a target animal is in the field of view of the camera; 4) recording the target animal with the camera if the target animal is in the field of view of the camera; 5) arming one or more deterrents and setting a target location; 6) deploying the deterrent to cause the target animal to leave the target area; 7) stopping the recording after step 6 and saving the recording to a file in the computer; 8) training the learning algorithm with training data sets; 9) validating the training of the learning algorithm with validation data sets; and 10) creating the training data sets and the validation data sets by gathering target animal image data in a target area, building image data sets for target animals and for target areas from the image data, and annotating or labeling images in the data sets so that the data sets may be entered into the learning algorithm.
 6. The method of claim 5, further comprising repeating steps 3 through 6 if the target animal has not left the target area after deploying the deterrent.
 7. The method of claim 5, further comprising continuing to perform step 3 until a target animal is in the field of view of the camera.
 8. A method of detecting and deterring a target animal from a target area, comprising: 1) placing the target area within the field of vision of a camera, wherein the camera is connected to a computer processing system; 2) running an animal identification computer program using convolution neural networks and deep learning computer programs with camera images from the camera to detect a target animal, wherein the animal identification computer program is trained to identify target animals using a learning algorithm; 3) verifying if a target animal is in the field of view of the camera; 4) recording the target animal with the camera if the target animal is in the field of view of the camera; 5) arming one or more deterrents and setting a target location; 6) deploying the deterrent to cause the target animal to leave the target area; 7) stopping the recording after step 6 and saving the recording to a file in the computer; 8) repeating steps 3 through 6 if the target animal has not left the target area after deploying the deterrent; 9) continuing to perform step 3 until a target animal is in the field of view of the camera; 10) training the learning algorithm with training data sets; 11) validating the training of the learning algorithm with validation data sets; and 12) creating the training data sets and the validation data sets by gathering target animal image data in a target area, building image data sets for target animals and for target areas from the image data, and annotating or labeling images in the data sets so that the data sets may be entered into the learning algorithm.
 9. The method of claim 8, wherein the time from performing step 3 to performing step 6 is 0.25 to 2 seconds. 